home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / applications / wp / macro28.lha / Macro / FinsGold / Modula / m2cQuit.ged < prev    next >
Encoding:
Text File  |  1994-06-12  |  941 b   |  37 lines

  1. /* m2cQuit.ged $VER: 0.1 m2cQuit.ged © 1994 Fin Schuppenhauer (12.06.94) */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes     */
  4.  
  5. if (LEFT(ADDRESS(), 6) ~= "GOLDED") then    /* not started by GoldEd ? */
  6.     address 'GOLDED.1'
  7.  
  8. 'LOCK CURRENT'                              /* lock GUI, gain access   */
  9. OPTIONS FAILAT 6                            /* ignore warnings         */
  10. SIGNAL ON SYNTAX                            /* ensure clean exit       */
  11.  
  12.  
  13. /* ------------------------ INSERT YOUR CODE HERE: ------------------- */
  14.  
  15.  
  16. 'QUERY CAT'
  17. german = (result = "deutsch")
  18.  
  19. if show('P','M2C') then
  20.    ADDRESS 'M2C' 'QUIT'
  21.  
  22. if german then
  23.    'REQUEST BODY="Compiler beendet."'
  24. else
  25.    'REQUEST BODY="Compiler terminated."'
  26.  
  27. /* ---------------------------- END OF YOUR CODE --------------------- */
  28.  
  29. 'UNLOCK' /* VERY important: unlock GUI */
  30. EXIT
  31.  
  32. SYNTAX:
  33.  
  34. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
  35. 'UNLOCK'
  36. EXIT
  37.